import pymongo
client  = pymongo.MongoClient('localhost',27017)
mydb = client['pymongo']
test = mydb['test']
test.insert_one({
    'name': 'egg',
    'sex': '男',
    'greade': 99
})
